package main

import (
	"zstackgo/pkg/portal/managementnode"

	"github.com/meilihao/golib/v2/log"
	"go.uber.org/zap"
)

func main() {
	Init()

	log.Level.SetLevel(zap.DebugLevel)
	// start from conf/web.xml
	bwListener := new(managementnode.BootstrapWebListener)
	bwListener.ContextInitialized()
	defer bwListener.ContextDestroyed()

	bclListener := new(managementnode.BootstrapContextLoaderListener)
	bclListener.ContextInitialized()

	clwListener := new(managementnode.ComponentLoaderWebListener)
	clwListener.ContextInitialized()
	defer clwListener.ContextDestroyed()
}
